
#define SET_BIT_TRUE(palavra, posicao)  (palavra = palavra | (0x01 << posicao))
#define SET_BIT_FALSE(palavra, posicao) (palavra = ~(0x01 << posicao) & palavra)
#define GET_BIT(palavra, posicao) ((palavra >> posicao) & 0x01)

#define ALFABIT 0
#define XLBIT 1
#define XCBIT 2
#define POWERONBIT 4
#define SHUTDOWNBIT 5
#define POSDESIREDBIT 6

#define SWPOSCARMINBIT 0
#define SWPOSCARMAXBIT 1
#define TRIGGERBIT 2
#define EMSTOPCHECKPOSDESIREDBIT 3
#define EMSTOPCHECKMINMAXBIT 4
#define EMSTOPMERGERBIT 5
#define EMMODECHECKALFABIT 6
#define VCCONTROLALGBIT 7
#define BRAKECONDITIONBIT 8
#define ISKNOWNBIT 9
#define BRAKEBIT 10
